package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/24 17:44
 **/
@Data
@ApiModel(value = "查询数据表单")
public class QueryDataSourceForm {

    @ApiModelProperty(value = "页码",example = "1")
    @Min(1)
    private Integer page;

    @ApiModelProperty(value = "每页数量",example = "10")
    @Range(min = 5,max = 50,message = "每页条数必须在5-50之间")
    private Integer limit;

    @ApiModelProperty(value = "模板类别过滤", example = "数据1")
    private String templateIdFilter;


    @ApiModelProperty(value = "根据本体类别过滤", example = "化学品")
    private String ontologyIdFilter;


    @ApiModelProperty(value = "根据数据源名称过滤", example = "化学品数据1")
    private String sourceNameFilter;


    @ApiModelProperty(value = "是否仅查看未分类数据0/仅查看未分类  1/查看所有", example = "0")
    private String classificationFilter;
}
